﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<skags.Models.New>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Skoða frétt
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="main">
    <div class="news_item">
        <h2><%= Html.ActionLink(Model.Title, "ViewItem", new { Model.ID })%></h2>
        <h3 class="news_date"><%= Model.DateCreated%></h3>
        <h3 class="news_readCount">Fjöldi lesninga: <%= Model.ReadCount.ToString() == "" ? 0 : Model.ReadCount %></h3>
        <p class="news_text"><%= Model.Text%></p>
    </div>
    <div id="fbshare">
    <a href="#" onclick="window.open('http://www.facebook.com/sharer.php?u=<%: HttpContext.Current.Request.Url %>', 'FbShare', 'height=400, width=500, toolbar=0, menubar=0, scrollbars=0, resizable=0, location=0, directories=0, status=0')" style="text-decoration: none"><img src="../../Content/icons/fb_share.gif" alt="" border="0" title="Deila á Facebook" align="absmiddle" /> <b>Deila á Facebook</b></a>
    </div>
</div>
</asp:Content>

